package com.icarsaas.saas.tenant.system.repository;

import com.icarsaas.saas.component.base.MyBaseRepository;
import com.icarsaas.saas.component.base.MyBaseRepositoryImpl;
import com.icarsaas.saas.tenant.system.model.MessageUser;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 如无状态status值则直接继承JpaRepository，否则继承BaseRepository
 */
public interface MessageUserRepository extends MessageUserRepositoryCustom, BaseRepository<MessageUser,String> {
    /**
     * 根据主表id查找附件
     * @param refId
     * @return
     */
    public List<MessageUser> findByRefId(String refId);
}

/* 自定义接口
 */
interface MessageUserRepositoryCustom extends MyBaseRepository<MessageUser,String> {

}

@Repository
class MessageUserRepositoryImpl extends MyBaseRepositoryImpl<MessageUser,String> implements MessageUserRepositoryCustom {

}

